package com.ipartek.desarrollo.beanHibernate;

// Generated 26-feb-2014 21:38:33 by Hibernate Tools 3.4.0.CR1

import static javax.persistence.GenerationType.IDENTITY;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Smsrespuestasold generated by hbm2java
 */
@Entity
@Table(name = "smsrespuestasold")
public class Smsrespuestasold implements java.io.Serializable {

	private Integer smsrespId;
	private String smsrespDesc;
	private Integer smsrespValor;
	private String smsrespObv;
	private Set<Smsenvios> smsenvioses = new HashSet<Smsenvios>(0);

	public Smsrespuestasold() {
	}

	public Smsrespuestasold(String smsrespDesc, Integer smsrespValor,
			String smsrespObv, Set<Smsenvios> smsenvioses) {
		this.smsrespDesc = smsrespDesc;
		this.smsrespValor = smsrespValor;
		this.smsrespObv = smsrespObv;
		this.smsenvioses = smsenvioses;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "SMSRespId", unique = true, nullable = false)
	public Integer getSmsrespId() {
		return this.smsrespId;
	}

	public void setSmsrespId(Integer smsrespId) {
		this.smsrespId = smsrespId;
	}

	@Column(name = "SMSRespDesc", length = 50)
	public String getSmsrespDesc() {
		return this.smsrespDesc;
	}

	public void setSmsrespDesc(String smsrespDesc) {
		this.smsrespDesc = smsrespDesc;
	}

	@Column(name = "SMSRespValor")
	public Integer getSmsrespValor() {
		return this.smsrespValor;
	}

	public void setSmsrespValor(Integer smsrespValor) {
		this.smsrespValor = smsrespValor;
	}

	@Column(name = "SMSRespObv", length = 150)
	public String getSmsrespObv() {
		return this.smsrespObv;
	}

	public void setSmsrespObv(String smsrespObv) {
		this.smsrespObv = smsrespObv;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "smsrespuestasold")
	public Set<Smsenvios> getSmsenvioses() {
		return this.smsenvioses;
	}

	public void setSmsenvioses(Set<Smsenvios> smsenvioses) {
		this.smsenvioses = smsenvioses;
	}

}
